package com.zfzs.post.modules.post.service;

import com.zfzs.post.modules.post.domain.TerminalType;
import com.zfzs.post.modules.post.service.dto.TerminalTypeQueryCriteria;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

/**
 * 终端类型
* @author ck
* @date 2019-09-27
*/
public interface TerminalTypeService {

    /**
    * queryAll 分页
    * @param criteria
    * @param pageable
    * @return
    */
    Map<String, Object> queryAll(TerminalTypeQueryCriteria criteria, Pageable pageable);

    /**
    * queryAll 不分页
    * @param criteria
    * @return
    */
    Object queryAll(TerminalTypeQueryCriteria criteria);

    /**
     * findById
     * @param id
     * @return
     */
    TerminalType findById(Long id);

    /**
     * create
     * @param resources
     * @return
     */
    TerminalType create(TerminalType resources);

    /**
     * update
     * @param resources
     */
    void update(TerminalType resources);

    /**
     * delete
     * @param id
     */
    void delete(Long id);

    /**
     * 根据渠道查询机具类型
     * @param channelId
     * @return
     */
    List<TerminalType> findByChannelId(Long channelId);
}